<template>
  <div>
    <el-breadcrumb separator-class="el-icon-arrow-right">
      <el-breadcrumb-item :to="{ path: '/home' }">首页</el-breadcrumb-item>
      <el-breadcrumb-item>服务器巡检</el-breadcrumb-item>
      <!-- <el-breadcrumb-item>美术服务器</el-breadcrumb-item> -->
    </el-breadcrumb>
    <common-form :formLabel="operateFormLabel" :form="operateForm" :casecadeFormLabel="casecadeFormLabel" :config="config" :rules="rules">
      <el-button type="primary" @click="getTableData" size="small">查询</el-button>
      <el-button type="primary" @click="exportToExcel" size="small" style="margin-left:50px">导出excel</el-button>
    </common-form>
    <common-table :tableLabel="tableLabel" :pageTableData="pageTableData" :config="config" @changePage="changePage"></common-table>
  </div>
</template>

<script>
import commonForm from '../commonForm'
import commonTable from '../commonTable'
export default {
  created() {
    this.get_dbs()
    // this.get_table_label()
  },
  components: {
    commonForm,
    commonTable
  },
  data() {
    return {
      operateType: 'add',
      isShow: false,
      operateForm: {
        //要更新的字段名字
        timerange: 'timerange',
        db: '',
        sql: '',
        network: '',
        check_person: '',
        service: '',
        org_id: '',
        status: '',
        report_code: '',
        province: '',
        phone: '',
        signature: '',
        cust_no: '',
        hh: '',
        mi: ''
      },
      operateFormLabel: [
        {
          model: 'db', //绑定的名字
          label: '子平台',
          type: 'select',
          children: []
        }
      ],
      casecadeFormLabel: [
        {
          model: 'weekly_check',
          label: '巡检',
          children: [
            {
              label: '服务器',
              value: 'inspect'
            },
          ]
        },        
      ],
      rules: {
        sno: [
          { required: true, message: '学号不能为空', trigger: 'blur' },
          { pattern: /^[9][5]\d{3}$/, message: '学号必须是95开头的五位数', trigger: 'blur' }
        ]
      },
      // formLabel: [
      //   {
      //     model: 'datestr',
      //     label: '时间范围',
      //     type: 'date'
      //   }
      // ],
      tableData: [],
      pageTableData: [],
      tableLabel: [],
      // tableRowClassName:'',
      inspectLabel: [
        // { prop: 'project', label: '类别', width: 70},
        { prop: 'ip', label: '服务器', width: 120},
        { prop: 'cpu', label: 'CPU占用率', width: 70},
        { prop: 'mem', label: '内存占用率', width: 70},
        { prop: 'disk', label: '磁盘使用情况', width: 230 },
        { prop: 'vda1', label: '/dev/vda1使用率', width: 100},
        { prop: 'vdb1', label: '/dev/vdb1使用率', width: 100},
        { prop: 'network', label: '网络连接', width: 60},
        { prop: 'service', label: '服务检查', width: 165 },  
        { prop: 'url', label: '站点检查', width: 165 },       
        { prop: 'create_time', label: '日期', width: 70}      
      ],       
      phoneLabel: [
        { prop: 'recv_time', label: 'recv_time', width: 160 },
        { prop: 'to_phone', label: 'to_phone', width: 130 },
        { prop: 'user_id', label: 'user_id', width: 100 },
        { prop: 'smg_code', label: 'smg_code', width: 120 },
        { prop: '行业端口', label: '行业端口', width: 180 },
        { prop: 'report_code', label: 'report_code', width: 120 },
        { prop: 'status', label: 'status' },
        { prop: 'msg', label: 'msg', width: 260 },
        { prop: 'subret_code', label: 'subret_code', width: 100 }
      ],
      phone2Label: [
        { prop: 'user_id', label: 'USER_ID', width: 300 },
        { prop: 'datestr', label: '日期', width: 300 },
        { prop: 'status', label: 'STATUS', width: 300 },
        { prop: 'sum', label: 'SUM', width: 300 }
      ],
      receiptTableLabel: [
        { prop: 'sum', label: 'SUM' },
        { prop: 'recvtime', label: 'RECV_TIME', width: 160 },
        { prop: 'second10', label: '秒10以内', width: 160 },
        { prop: 'second20', label: '秒20以内', width: 160 },
        { prop: 'second30', label: '秒30以内', width: 160 },
        { prop: 'second60', label: '秒60以内', width: 160 },
        { prop: 'second120', label: '秒120以内', width: 160 },
        { prop: 'secondet120', label: '秒120以上', width: 160 },
        { prop: 'fail', label: '无返回' }
      ],
      successLabel: [
        { prop: 'smg_code', label: 'SMG_CODE', width: 100 },
        { prop: 'user_id', label: 'USER_ID' },
        { prop: '日期', label: '日期', width: 160 },
        { prop: '总条数', label: '总条数' },
        { prop: '成功率', label: '成功率' },
        { prop: '审计中2', label: '审计中2' },
        { prop: '提交成功3', label: '提交成功3' },
        { prop: '提交失败4', label: '提交失败4' },
        { prop: '应答成功5', label: '应答成功5' },
        { prop: '应答失败6', label: '应答失败6' },
        { prop: '状态报告成功7', label: '状态报告成功7', width: 120 },
        { prop: '状态报告失败8', label: '状态报告失败8', width: 120 },
        { prop: '黑名单12', label: '黑名单12' }
      ],
      // success2Label: [],
      // success3Label: [],
      provinceSuccessLabel: [
        { prop: 'smg_code', label: 'SMG_CODE' },
        { prop: 'user_id', label: 'USER_ID' },
        { prop: 'province', label: '省份', width: 160 },
        { prop: 'num', label: '总条数' },
        { prop: 'audit', label: '审计中2' },
        { prop: 'commit_success', label: '提交成功3' },
        { prop: 'commit_fail', label: '提交失败4' },
        { prop: 'subret_success', label: '应答成功5' },
        { prop: 'subret_fail', label: '应答失败6' },
        { prop: 'report_success', label: '状态报告成功7', width: 120 },
        { prop: 'report_fail', label: '状态报告失败8', width: 120 },
        { prop: 'black_template', label: '黑名单12' }
      ],
      sendTimeLabel: [
        { prop: 'smg_code', label: 'SMG_CODE', width: 400 },
        { prop: 'send_time', label: 'SEND_TIME', width: 400 },
        { prop: 'sum', label: 'SUM', width: 400 }
      ],
      reportsmgcodeLabel: [
        { prop: 'smg_code', label: 'SMG_CODE', width: 400 },
        { prop: 'report_code', label: 'REPORT_CODE', width: 400 },
        { prop: 'sum', label: 'SUM', width: 400 }
      ],
      reportuseridLabel: [
        { prop: 'user_id', label: 'USER_ID', width: 400 },
        { prop: 'report_code', label: 'REPORT_CODE', width: 400 },
        { prop: 'sum', label: 'SUM', width: 400 }
      ],
      reportfailcontentLabel: [
        { prop: 'user_id', label: 'USER_ID', width: 200 },
        { prop: 'status', label: 'STATUS', width: 200 },
        { prop: 'content', label: 'CONTENT', width: 600 },
        { prop: 'sum', label: 'SUM', width: 200 }
      ],
      notpushLabel: [
        { prop: 'stat', label: 'STAT', width: 400 },
        { prop: 'userid', label: 'USERID', width: 400 },
        { prop: 'sum', label: 'SUM', width: 400 }
      ],
      resendLabel: [
        { prop: 'create_time', label: 'CREATE_TIME', width: 160 },
        { prop: 'fail_count', label: 'FAIL_COUNT' },
        { prop: 'recv_time', label: 'RECV_TIME', width: 160 },
        { prop: 'to_phone', label: 'TO_PHONE', width: 140 },
        { prop: 'user_id', label: 'USER_ID' },
        { prop: 'smg_code', label: 'SMG_CODE' },
        { prop: 'report_time', label: 'REPORT_TIME', width: 160 },
        { prop: 'report_code', label: 'REPORT_CODE', width: 140 },
        { prop: 'status', label: 'STATUS' },
        { prop: 'content', label: 'CONTENT', width: 140 }
      ],
      auditsmsLabel: [
        { prop: 'check_person', label: 'CHECK_PERSON', width: 400 },
        { prop: 'check_time', label: 'CHECK_TIME', width: 400 },
        { prop: 'count', label: 'COUNT', width: 400 }
      ],
      auditslowLabel: [
        { prop: 'phone', label: 'PHONE', width: 230 },
        { prop: 'create_time', label: 'CREATE_TIME', width: 230 },
        { prop: 'last_send_time', label: 'LAST_SEND_TIME', width: 230 },
        { prop: 'check_time', label: 'CHECK_TIME', width: 230 },
        { prop: 'content', label: 'CONTENT', width: 230 }
      ],
      userLabel: [
        { prop: 'user_id', label: 'USER_ID', width: 300 },
        { prop: 'report_code', label: 'REPORT_CODE', width: 300 },
        { prop: 'name', label: 'NAME', width: 300 },
        { prop: 'count', label: 'COUNT', width: 300 }
      ],
      signLabel: [
        { prop: 'user_id_or_smg_code', label: 'user_id_or_smg_code', width: 400 },
        { prop: 'sign', label: '签名', width: 400 },
        { prop: 'sum', label: 'SUM', width: 400 }
      ],
      sign2Label: [
        { prop: 'content', label: 'CONTENT', width: 600 },
        { prop: 'sum', label: 'SUM', width: 600 }
      ],
      yunxinSendLabel: [
        { prop: '机构ID', label: '机构ID', width: 110 },
        { prop: '日期', label: '日期', width: 110 },
        { prop: '总条数', label: '总条数', width: 110 },
        { prop: '未能发送0', label: '未能发送0', width: 110 },
        { prop: '未知状态1', label: '未知状态1', width: 110 },
        { prop: '明确成功3', label: '明确成功3', width: 110 },
        { prop: '明确失败4', label: '明确失败4', width: 110 },
        { prop: '审核拦截5', label: '审核拦截5', width: 110 },
        { prop: '网关拦截7', label: '网关拦截7', width: 110 },
        { prop: '超时9', label: '超时9', width: 110 }
      ],
      yunxin2SendLabel: [
        { prop: 'org_id', label: 'ORG_ID', width: 100 },
        { prop: 'to_mobile', label: 'TO_MOBILE', width: 120 },
        { prop: 'presend_time', label: 'PRESEND_TIME', width: 160 },
        { prop: 'msg_content', label: 'MSG_CONTENT', width: 600 },
        { prop: 'report', label: 'REPORT', width: 120 }
      ],
      blackTemplateLabel: [
        { prop: 'template_no', label: 'TEMPLATE_NO', width: 200 },
        { prop: 'content', label: 'CONTENT', width: 800 },
        { prop: 'is_black', label: 'IS_BLACK', width: 200 }
      ],
      subPlatformLabel: [
        { prop: 'user_id', label: 'USER_ID' },
        { prop: '日期', label: '日期', width: 160 },
        { prop: '总条数', label: '总条数' },
        { prop: '审计中2', label: '审计中2' },
        { prop: '提交成功3', label: '提交成功3' },
        { prop: '提交失败4', label: '提交失败4' },
        { prop: '应答成功5', label: '应答成功5' },
        { prop: '应答失败6', label: '应答失败6' },
        { prop: '状态报告成功7', label: '状态报告成功7', width: 120 },
        { prop: '状态报告失败8', label: '状态报告失败8', width: 120 },
        { prop: '费用不足', label: '费用不足', width: 120 },
        { prop: '黑名单12', label: '黑名单12' },
        { prop: '非法关键字13', label: '非法关键字13', width: 120 },
        { prop: '审计未通过14', label: '审计未通过14', width: 120 },
        { prop: '其他15', label: '其他15', width: 120 },
        { prop: '白名单16', label: '白名单16', width: 120 },
        { prop: '无效的短信长度18', label: '无效的短信长度18', width: 120 },
        { prop: '无效签名19', label: '无效签名19', width: 120 }
      ],
      subPlatformLabel2: [],
      subPlatformLabel3: [
        { prop: 'smg_code', label: 'SMG_CODE', width: 100 },
        { prop: 'user_id', label: 'USER_ID' },
        { prop: 'corp_name', label: 'CORP_NAME', width: 240 },
        { prop: 'fee', label: '单价' },
        { prop: 'salesman', label: 'SALESMAN', width: 100 },
        { prop: '日期', label: '日期', width: 100 },
        { prop: '总条数', label: '总条数' },
        { prop: '审计中2', label: '审计中2' },
        { prop: '提交成功3', label: '提交成功3' },
        { prop: '提交失败4', label: '提交失败4' },
        { prop: '应答成功5', label: '应答成功5' },
        { prop: '应答失败6', label: '应答失败6' },
        { prop: '状态报告成功7', label: '状态报告成功7', width: 120 },
        { prop: '状态报告失败8', label: '状态报告失败8', width: 120 },
        { prop: '费用不足', label: '费用不足', width: 120 },
        { prop: '黑名单12', label: '黑名单12' },
        { prop: '非法关键字13', label: '非法关键字13', width: 120 },
        { prop: '审计未通过14', label: '审计未通过14', width: 120 },
        { prop: '其他15', label: '其他15', width: 120 },
        { prop: '白名单16', label: '白名单16', width: 120 },
        { prop: '无效的短信长度18', label: '无效的短信长度18', width: 130 },
        { prop: '无效签名19', label: '无效签名19', width: 120 }
      ],
      subPlatformLabel4: [
        { prop: 'smg_code', label: 'SMG_CODE', width: 100 },
        { prop: 'user_id', label: 'USER_ID' },
        { prop: 'corp_name', label: 'CORP_NAME', width: 240 },
        { prop: 'employee_name', label: 'EMPLOYEE_NAME', width: 100 },
        { prop: 'fee', label: '单价' },
        { prop: '日期', label: '日期', width: 100 },
        { prop: '总条数', label: '总条数' },
        { prop: '审计中2', label: '审计中2' },
        { prop: '提交成功3', label: '提交成功3' },
        { prop: '提交失败4', label: '提交失败4' },
        { prop: '应答成功5', label: '应答成功5' },
        { prop: '应答失败6', label: '应答失败6' },
        { prop: '状态报告成功7', label: '状态报告成功7', width: 120 },
        { prop: '状态报告失败8', label: '状态报告失败8', width: 120 },
        { prop: '费用不足', label: '费用不足', width: 120 },
        { prop: '黑名单12', label: '黑名单12' },
        { prop: '非法关键字13', label: '非法关键字13', width: 120 },
        { prop: '审计未通过14', label: '审计未通过14', width: 120 },
        { prop: '其他15', label: '其他15', width: 120 },
        { prop: '白名单16', label: '白名单16', width: 120 },
        { prop: '无效的短信长度18', label: '无效的短信长度18', width: 130 },
        { prop: '无效签名19', label: '无效签名19', width: 120 }
      ],
      xinyunxinLabel: [],
      xinyunxin2Label: [],
      inputLabel: [],
      config: {
        page: 1,
        pagesize: 30,
        loading: false,
        cascader: true
      }
    }
  },
  methods: {
    getTableData() {
      this.config.loading = true
      this.$http
        .post('/messages/', this.operateForm)
        .then(res => {
          console.log('messages res', res)
          if (res.data === '没有权限'){
            return this.$message.warning(res.data)
          }
          if (res.data.code === 1) {
            this.tableData = res.data.data
            this.tableData.forEach(item => {
              item.create_time = this.$utils.formatToTime(item.create_time)
            })            
            this.config.total = this.tableData.length
            this.inputLabel = res.data.inputLabel
            // JSON.parse(JSON.stringify(this.subPlatformLabel))
            // if (this.inputLabel) {
            //   this.tableLabel = this.inputLabel
            // }
            if (this.operateForm.sql === 'subplatform3') {
              if (Object.keys(this.tableData[0]).length === 21) {
                this.tableLabel = JSON.parse(JSON.stringify(this.subPlatformLabel3))
                this.tableLabel.splice(0, 1)
              } else {
                this.tableLabel = this.subPlatformLabel3
              }
            }
            if (this.operateForm.sql === 'subplatform4') {
              if (Object.keys(this.tableData[0]).length === 21) {
                this.tableLabel = JSON.parse(JSON.stringify(this.subPlatformLabel4))
                this.tableLabel.splice(0, 1)
                console.log('-->11111111 tableLabel', this.tableLabel)
              } else {
                this.tableLabel = this.subPlatformLabel4
              }
            } else if (this.operateForm.sql === 'nop3') {
              console.log('-->this.tableData 11111111111111111111', this.tableData)
              console.log('-->this.tableData[0] 11111111111111111111', Object.keys(this.tableData[0]))
              this.tableLabel = JSON.parse(JSON.stringify(this.yunxinSendLabel))
              this.tableLabel.splice(1, 1, { prop: 'full_name', label: '公司名', width: 200 })
              console.log('-->11111111 tableLabel', this.tableLabel)
            } else if (this.operateForm.sql === '单个签名') {
              console.log('-->this.tableData 11111111111111111111', Object.keys(this.tableData[0]).length)
              if (Object.keys(this.tableData[0]).length === 2) {
                this.tableLabel = this.sign2Label
              } else {
                this.tableLabel = JSON.parse(JSON.stringify(this.sign2Label))
                this.tableLabel.splice(0, 0, { prop: 'user_id', label: '用户', width: 200 })
              }
            }
            this.getPageTableData()
            this.config.loading = false
            const h = this.$createElement;
            this.$notify({
              title:'数据加载成功',
              // dangerouslyUseHTMLString: true,
              // message:'<p>'+res.data.sql+'</p>',
              type:'success',
              // position: 'top-left',
              // offset:300
            })
            // this.$message.success('数据加载成功')
          } else {
            this.$message.warning(res.data.msg)
            this.config.loading = false
          }
        })
        .catch(err => {
          console.log('此处应有err', err)
        })
      if (this.operateForm.sql === '回执率') {
        console.log('回执率 tableLabel', this.receiptTableLabel)
        this.tableLabel = this.receiptTableLabel
      // } else if (this.operateForm.sql === 'inspect') {
      //   this.tableLabel = this.inspectLabel
      } else if (this.operateForm.sql === 'phone1' || this.operateForm.sql === 'phone2') {
        this.tableLabel = this.phoneLabel
      } else if (this.operateForm.sql === 'phone3') {
        this.tableLabel = this.phone2Label
      } else if (this.operateForm.sql === 'success1' || this.operateForm.sql === 'success1' || this.operateForm.sql === 'success3') {
        console.log('--> this.successTableLabel 11111111111111111111', this.successTableLabel)
        this.tableLabel = this.successLabel
      } else if (this.operateForm.sql === 'inspect') {
        this.tableLabel = this.inspectLabel
      } else if (this.operateForm.sql === '省份通道成功率') {
        this.tableLabel = this.provinceSuccessLabel
      } else if (this.operateForm.sql === '1分钟内' || this.operateForm.sql === 'send1') {
        this.tableLabel = this.sendTimeLabel
      } else if (this.operateForm.sql === 'osp重推表') {
        this.tableLabel = this.notpushLabel
      } else if (this.operateForm.sql === 'sgip重推表') {
        this.tableLabel = this.resendLabel
      } else if (this.operateForm.sql === '通道统计') {
        console.log('444', this.operateForm.sql)
        this.tableLabel = this.reportsmgcodeLabel
      } else if (this.operateForm.sql === '用户统计') {
        this.tableLabel = this.reportuseridLabel
      } else if (this.operateForm.sql === '内容规律') {
        this.tableLabel = this.reportfailcontentLabel
      } else if (this.operateForm.sql === '10分内' || this.operateForm.sql === 'check1') {
        this.tableLabel = this.auditsmsLabel
      } else if (this.operateForm.sql === '地区统计') {
        this.tableLabel = this.userLabel
      } else if (this.operateForm.sql === 'check2') {
        this.tableLabel = this.auditslowLabel
      } else if (this.operateForm.sql === '多个签名') {
        this.tableLabel = this.signLabel
      } else if (this.operateForm.sql === 'nop1') {
        this.tableLabel = this.yunxinSendLabel
      } else if (this.operateForm.sql === 'nop2') {
        this.tableLabel = this.yunxin2SendLabel
      } else if (this.operateForm.sql === '黑模板') {
        this.tableLabel = this.blackTemplateLabel
      } else if (this.operateForm.sql === 'subplatform1') {
        this.tableLabel = this.subPlatformLabel
      } else if (this.operateForm.sql === 'subplatform2') {
        this.subPlatformLabel2 = JSON.parse(JSON.stringify(this.subPlatformLabel))
        this.subPlatformLabel2.splice(0, 1, { prop: 'smg_code', label: '通道' })
        this.tableLabel = this.subPlatformLabel2
      } else if (this.operateForm.sql === 'xinyunxin1') {
        this.xinyunxinLabel = JSON.parse(JSON.stringify(this.subPlatformLabel))
        this.xinyunxinLabel.splice(0, 1, { prop: 'cust_no', label: 'CUST_NO' })
        this.tableLabel = this.xinyunxinLabel
      } else if (this.operateForm.sql === 'xinyunxin2') {
        this.xinyunxin2Label = JSON.parse(JSON.stringify(this.subPlatformLabel))
        this.xinyunxin2Label.splice(0, 2, { prop: 'platform_num', label: 'PLATFORM_NUM' })
        console.log('-->11111111 xinyunxin2Label', this.xinyunxin2Label)
        this.tableLabel = this.xinyunxin2Label
      }
      console.log('--> tableLabel', this.tableLabel)
      console.log('333 sql', this.operateForm.sql)
    },
    getPageTableData() {
      this.pageTableData = []
      console.log('-->pageTableData pagesize', this.config.pagesize)
      console.log('-->pageTableData total', this.config.total)
      console.log('-->tableData111 pageTableData', this.tableData)
      for (let i = (this.config.page - 1) * this.config.pagesize; i < this.config.total; i++) {
        this.pageTableData.push(this.tableData[i])
        if (this.pageTableData.length === this.config.pagesize) break
      }
      // console.log('-->pageTableData', this.pageTableData)
    },
    query() {
      this.config.loading = true
      this.$http
        .post('/messages/', this.searchForm)
        .then(res => {
          console.log(res.data)
          if (res.data.code === 1) {
            this.tableData = res.data.data
            console.log('-->res.data.data', 'REAL_SP_NUMBER' in res.data.data[0])
            console.log('------->tableLabel', this.tableLabel)
            // temp = res.data.data[0]
            if ('REAL_SP_NUMBER' in res.data.data[0]) {
              this.tableLabel.splice(4, 1)
              console.log('------->tableLabel new', this.tableLabel)
              this.tableLabel.push({ prop: 'REAL_SP_NUMBER', label: '行业端口', width: 200 })
            }
            this.config.total = this.tableData.length
            this.getPageTableData()
            this.config.loading = false
          } else {
            this.config.loading = false
            this.$message.warning(res.data.msg)
          }
        })
        .catch(err => {
          this.config.loading = false
          // eslint-disable-next-line no-undef
          this.$message.warning(res.data.msg)
        })
    },
    exportToExcel() {
      this.config.loading = true
      this.$http
        .get('/infomation/export/')
        .then(res => {
          if (res.data.code === 1) {
            console.log('---> export infomation excel')
            this.config.loading = false
            this.$message.success('导出成功!')
          } else {
            this.$message.warning(res.data.msg)
          }
        })
        .catch(err => {
          console.log('此处应有err', err)
        })
    },
    closeDialog() {
      this.operateForm.sno = ''
      this.operateForm.name = ''
      this.operateForm.gender = ''
      this.operateForm.birthday = ''
      this.operateForm.mobile = ''
      this.operateForm.email = ''
      this.operateForm.address = ''
      this.operateForm.image = ''
      this.operateForm.imageUrl = ''
      this.isShow = false
    },
    changePage(val) {
      console.log('-->val', val)
      // this.config.page = val
      this.getPageTableData()
    },
    // tableRowClassName({row, rowIndex}) {
    //   if (rowIndex === 1) {
    //     return 'warning-row';
    //   } else if (rowIndex === 3) {
    //     return 'success-row';
    //   }
    //   return '';
    // },  
    async get_dbs() {
      const { data: res } = await this.$http.get('dbs')
      console.log('-->res 111', res.data)
      if (res.code !== 1) {
        return this.$message.error('获取dbs失败')
      }
      this.operateFormLabel[0].children = res.data
    },
    async get_table_label() {
      alert(1)
      const { data: res } = await this.$http.get('table_label')
      console.log('-->res table_label', res.data)
      if (res.code !== 1) {
        return this.$message.error('获取receipt label失败')
      }
      // this.phoneLabel = res.data.phoneLabel
      // this.phone2Label = res.data.phone2Label
      // this.receiptTableLabel = res.data.receiptLabel
      // this.successTableLabel = res.data.successLabel
      // this.provinceSuccessLabel = res.data.provinceSuccessLabel
      // this.sendtimeTableLabel = res.data.sendTimeLabel
      // this.notpushLabel = res.data.notpushLabel
      // this.resendLabel = res.data.resendLabel
      // this.reportsmgcodeLabel = res.data.reportsmgcodeLabel
      // this.reportuseridLabel = res.data.reportuseridLabel
      // this.reportfailcontentLabel = res.data.reportfailcontentLabel
      // this.auditsmsLabel = res.data.auditsmsLabel
      // this.auditslowLabel = res.data.auditslowLabel
      // this.userLabel = res.data.userLabel
      // this.signLabel = res.data.signLabel
      // this.sign2Label = res.data.sign2Label
      // this.yunxinSendLabel = res.data.yunxinSendLabel
      // this.yunxin2SendLabel = res.data.yunxin2SendLabel
      // this.yunxin3SendLabel = res.data.yunxin3SendLabel
      // this.blackTemplateLabel = res.data.blackTemplateLabel
      // this.subPlatformLabel = res.data.subPlatformLabel
    }
  }
}
</script>

<style lang="less" scoped>
// @import '@/assets/scss/common.scss';
.el-cascader-panel {
  font-size: 10px;
}
</style>
